package cn.cdzdjd.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PlatformUrlProcess {
	
	public static String process(String userInput) {
		String pattern = "((http|https)://[^\\s/$.?#].[^\\s]*)";
		Pattern r = Pattern.compile(pattern);
		Matcher m = r.matcher(userInput);
		while(m.find()) {
			String group = m.group(0);
			return group;
		}
		return null;
	}
}
